home *** CD-ROM | disk | FTP | other *** search
/ Champak 119 / (Vol 119) Nov 09 2010.iso / TGKI-109 / Games / how_to_make_mixed_vegetable_salad.swf / scripts / DefineSprite_365 / frame_34 / DoAction.as
Text File  |  2010-11-09  |  616b  |  26 lines

  1. stop();
  2. _parent.ins20._visible = true;
  3. _parent.cutOnion.cutFlower.onPress = function()
  4. {
  5.    startDrag(this,0);
  6. };
  7. _parent.cutOnion.cutFlower.onRelease = function()
  8. {
  9.    if(_parent.onionPlate.hitTest(this))
  10.    {
  11.       this.stopDrag();
  12.       this._x = 435;
  13.       this._y = 25;
  14.       _parent.ins20._visible = false;
  15.       knief._visible = false;
  16.       _parent.knief._visible = true;
  17.       _parent.knief.enabled = false;
  18.       _parent.knief._x = 55.6;
  19.       _parent.knief._y = 8.2;
  20.       this.enabled = false;
  21.       _global.dd = 2;
  22.       _parent.ins7._visible = true;
  23.       CutCelery();
  24.    }
  25. };
  26.